<div class="layui-form" lay-filter="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">

  <div class="layui-form-item">
    <label class="layui-form-label" style="width:140px; text-align: left;">标题(限制40字)</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" maxlength="40" name="title" value="{{ d.params.title || '' }}" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label" style="width:140px; text-align: left;">内容</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <textarea type="text" name="content" class="layui-textarea"  lay-verify="required" placeholder="请输入内容" lay-verify="required">{{ d.params.content || '' }}</textarea>
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
      <input type="button" lay-submit lay-filter="LAY-user-back-submit" value="确认" class="layui-btn">
    </div>
  </div>
</div>

<script>
  layui.use(['admin', 'form', 'upload'], function () {
    var $ = layui.$
      , setter = layui.setter
      , form = layui.form
  })
</script>